package com.musemun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.musemun.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    @Select("select role.role,role.rid from role,er where er.eNo=#{id} and er.rid=role.rid")
    List<Role> getAllRolesByEno(long id);

}
